<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素显示模式的转换</title>
    <style>
        a {
            width: 150px;
            height: 50px;
            background-color: pink;
            /* 行内元素装换成块元素 */
            display: block;
        }
        div {
            /* width: 200px;
            height: 50px; */
            background-color: rgb(255, 0, 242);
            /* 块元素转换为行内元素 */
            display: inline;
        }

        span {
            width: 200px;
            height: 60px;
            background-color: red;
            /* 行内元素转换成行内块 */
            display: inline-block;
        }
        
       
    </style>
</head>
<body>
    <a href="#">小米商城</a>
    <a href="#">小米商城</a>
    <div>我是块元素</div>
    <div>我是块元素</div>

    <span>行内元素转换为行内块</span>
    <span>行内元素转换为行内块</span>
</body>
</html>